package com.hoangqp.util;

import android.app.Activity;
import android.util.DisplayMetrics;

public class CaculateScreenSize {
	
	private DisplayMetrics displaymetrics;
	
	public CaculateScreenSize(Activity context){
		displaymetrics = new DisplayMetrics();
		context.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
	}
	
	public int widthScreen() {
		return displaymetrics.widthPixels;
	}
	
	public int heightScreen(){
		return displaymetrics.heightPixels;
	}
	
}
